using Hangfire.HttpJob.Agent;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddHangfireHttpJobAgent();

var app = builder.Build();

app.UseHangfireHttpJobAgent();

app.Run();